<%@ page  contentType="text/html; charset=UTF-8"%>
<%@ include file="/WEB-INF/view/system/common/head.jsp"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<head>

<script>

  function loginOut(){
    window.parent.loginOut();
  }
  
  function showUserInfoes(){
    window.parent.showPwdupdate();
  }
  
  function showLeftmenu(systemMenuId,systemMenuName){
    document.getElementById('systemMenuName').value = systemMenuName;
    document.getElementById('systemMenuId').value = systemMenuId;
  	var url = "view/getLeftmenu.action?systemMenuId=" + systemMenuId;
  	window.parent.document.getElementById("leftFrame").src = url;
  }
  
</script>
<style>
 body,ul,ol,li,input,textarea,th,td,dl,dt,dd{margin:0;padding:0;border:0;}
 body{ text-align:center;font:12px/1.5 tahoma,arial,\5b8b\4f53;}
 div{ margin:0 auto; text-align:left;zoom: 1;}
</style>

</head>
<body>
<input type="hidden" id="systemMenuId" name="systemMenuId"/>
<input type="hidden" id="systemMenuName" name="systemMenuName"/>
<div class="top-warp">
  <div class="top-logo"></div>
  <div class="top-exit"><span> 用户：<a style="font-weight:bold;cursor:pointer;"  onclick="showUserInfoes()">${txtUserName}</a></span>
  &nbsp;&nbsp;<span> 分组：${loginedUser.groupname}</span>
  &nbsp;&nbsp;<span>角色：${txtRoles}</span><a onclick="loginOut()" class="btn-exit" style="cursor:pointer;" title="退出" ><span>退出</span></a></div>
  <div class="top-menu">
       	<ul>
       		
			<c:forEach var="systemMenu" items="${systemMenuList}">
			 <li><a class="myLink" onClick="showLeftmenu('${systemMenu.id}','${systemMenu.name}')">
		       <img src="asserts/system/images/menu/${systemMenu.imgurl}.gif" /><c:out value="${systemMenu.name}" />
                     
              </a></li>
            </c:forEach>
			
			
		</ul> 
   </div>
  <div class="top-bg">
 <div class="top-name"></div>
  </div><div class="top-notice" >
   <marquee direction=left scrollamount=2 onmouseover="this.stop()" onmouseout="this.start()"  > 
   <span id="topInfo" class="colrRed"></span></marquee></div>
    
</div>
</body>